
<script>
import { h } from 'vue';
// Vue3中函数组件只能用函数方式声明
function Heading (props, context) {
    console.log(props, context);
    return h(`h${props.level}`, context.attrs, context.slots.default());
}

Heading.props = ['level'];

export default Heading;
</script>
